var cloud = [{
    name: "珠海",
    value: 100/1
},{
    name: "金华",
    value: 100/2
},{
    name: "九江",
    value: 100/3
},{
    name: "惠州",
    value: 100/4
},{
    name: "深圳",
    value: 100/5
},{
    name: "厦门",
    value: 100/6
},{
    name: "河池",
    value: 100/7
},{
    name: "宜春",
    value: 100/8
},{
    name: "澳门",
    value: 100/9
},{
    name: "信阳",
    value: 100/10
},]




var cloud_data = {
    value: cloud,
    image: ''
}
var maskImage = new Image();
maskImage.src = cloud_data.image


const get_word_cloud_option = function () {
    return {
        title: {
            text: '全国10大宜居城市',
            left: 'center'
        },
        //backgroundColor: '#fff',
        tooltip: {
            show: false
        },
        color: 'black',
        series: [{
            type: 'wordCloud',
            gridSize: 1,
            sizeRange: [12, 100],
            rotationRange: [-45, 0, 45, 90],
            maskImage: maskImage,
            textStyle: {
                normal: {
                    color: 'black'

                }
            },
            // left: '10%',
            top: 'center',
            width: '100%',
            height: '100%',

            data: cloud_data.value
        }]


    }
};

